/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package horizon.map;

import horizon.util.Vector2;

/**
 *
 * @author J_Laptop
 */
public class ResourceChunk {
    
    public Vector2 worldPosition;
    
    
    Tile[] tiles = new Tile[Map.tileSide * Map.tileSide];
    
    public ResourceChunk(Vector2 pos){
        
        worldPosition = pos;
        
    }
    
    public ResourceChunk(Tile[] tiles , Vector2 pos){
        
        worldPosition = pos;
        
        if(tiles.length == Map.tileSide * Map.tileSide){
            
            this.tiles = tiles;
            
        }
        else{
            System.out.println("ERR: WRONG CHUNK SIZE");
        }
        
    }
    
}
